import request from '@/utils/request';

// 查询系统消息
export function companyMessageList(data) {
  return request({
    url: '/company/message/list',
    method: 'post',
    headers: {
      repeatSubmit: false
    },
    data
  });
}

// 标记消息已读
export function companyMessageMarkRead(data) {
  return request({
    url: '/company/message/mark_read',
    method: 'post',
    data
  });
}

// 清除已读消息
export function companyMessageCleanRead(data) {
  return request({
    url: '/company/message/clean_read',
    method: 'post',
    data
  });
}

// 获取申请记录
export function applicationApplyNodes(data) {
  return request({
    url: `/platform/application/apply_nodes`,
    method: 'get',
    params: data
  });
}
